// pages/shops/shops.js
var app = getApp()
var com = require("../../utils/comm.js")
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgUrls: [
      '/images/manage/top-1.jpg',
      '/images/manage/top-2.jpg',
      '/images/manage/top-3.jpg',
    ],
    indicatorDots: false,
    autoplay: false,
    interval: 3000,
    duration: 800,
    showView: true,

    carNum:0,
  
  },

  ordermg: function (e) {
    console.log("com.authjust()=" + com.authjust(1))
    com.authjust(1)
    var x = com.authjust(1);
    if (x) {
      wx.navigateTo({
        url: '/pages/ordermg/ordermg',
      })
    } else {
    }
  },

  goodmang:function(e){
    console.log("com.authjust()=" + com.authjust(1))
    com.authjust(1)
    var x = com.authjust(1);
    if(x){
      wx.navigateTo({
        url: '/pages/goodsmanage/goodsmanage',
      })
    }else{
    }
  },

  transportationExpensesMang: function (e) {
    console.log("com.authjust()=" + com.authjust(1))
    com.authjust(1)
    var x = com.authjust(1);
    if (x) {
      wx.navigateTo({
        url: '/pages/transportationExpenses/transportationExpensesManage',
      })
    } else {
    }
  },

  incentiveMang: function (e) {
    console.log("com.authjust()=" + com.authjust(1))
    com.authjust(1)
    var x = com.authjust(1);
    if (x) {
      wx.navigateTo({
        url: '/pages/incentive/incentiveManage',
      })
    } 
  },

  shopset: function (e) {
    console.log("com.authjust()=" + com.authjust(1))
    com.authjust(1)
    var x = com.authjust(1);
    if (x) {
      wx.navigateTo({
        url: '/pages/shopset/shopset',
      })
    } else {
    }
  },

  techgoodlist: function (e) {
    console.log("com.authjust()=" + com.authjust(2))
    com.authjust(2)
    var x = com.authjust(2);
    if (x) {
      wx.navigateTo({
        url: '/pages/techgoodlist/techgoodlist',
      })
    } else {
    }
  },

  techgoodcar: function (e) {
    console.log("com.authjust()=" + com.authjust(2))
    com.authjust(2)
    var x = com.authjust(2);
    if (x) {
      wx.navigateTo({
        url: '/pages/techgoodcar/techgoodcar',
      })
    } else {
    }
  },

  techordermg: function (e) {
    console.log("com.authjust()=" + com.authjust(2))
    com.authjust(2)
    var x = com.authjust(2);
    if (x) {
      wx.navigateTo({
        url: '/pages/techordermg/techordermg',
      })
    } else {
    }
  },

  

  techorderlis: function(e) {
    console.log("com.authjust()=" + com.authjust(2))
    com.authjust(2)
    var x = com.authjust(2);
    if (x) {
      wx.navigateTo({
        url: '/pages/techordermg/techorderlist',
      })
    } else {
    }
  },



  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    var that = this
    that.setData({
      carNum: wx.getStorageSync('carNum')
    }) 
    if (that.data.carNum == 0){
      that.setData({
        carNum: ''
      }) 
    }
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})